package cn.iocoder.yudao.module.erp.framework.web.config;

import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration;
import cn.iocoder.yudao.module.erp.dal.dataobject.contractinfo.ContractInfoDO;
import cn.iocoder.yudao.module.erp.dal.dataobject.customeraccount.CustomerAccountDO;
import cn.iocoder.yudao.module.erp.dal.dataobject.monthplaninfo.MonthPlanInfoDO;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import java.util.concurrent.ConcurrentHashMap;

/**
 * erp 模块的 web 组件的 Configuration
 *
 * @author 芋道源码
 */
@Configuration
public class MapConfiguration {

    @Bean
    @Scope("singleton")
    public ConcurrentHashMap<String, CustomerAccountDO> customerAccountHashMap(){
        return new ConcurrentHashMap<>();
    }


    @Bean
    @Scope("singleton")
    public ConcurrentHashMap<String, MonthPlanInfoDO> monthHashMap(){
        return new ConcurrentHashMap<>();
    }


    @Bean
    @Scope("singleton")
    public ConcurrentHashMap<String, ContractInfoDO> contractHashMap(){
        return new ConcurrentHashMap<>();
    }


}
